package edu.hzit.data.utils;


import java.util.Base64;

public class TokenUtil {
    public static String createToken(String username){
        String f = username.substring(0,1);
        String l = username.substring(username.length()-1);
        String str = l+f+username+l+f;
        //String s = UUID.randomUUID().toString();
        String token = username+"."+ Base64.getEncoder().encodeToString(str.getBytes());
        return token;
    }
}
